#!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
# @Time    : 2022/08/26 15:26
# @Author  : elegantfrog
# @FileName: config.py


config = {
    'mqtt': {
        'host': 'ai.seedlight.cn',
        'port': 31401,
        'username': 'admin',
        'password': 'public',
        'transport': 'tcp'
    },
    'files': {
        'code': r'D:\\Data\\Python\\seedlight2022\\files\\cpuinfo',  # /proc/cpuinfo
        'light': r'D:\\Data\\Python\\seedlight2022\\files\\value',  # '/sys/class/gpio/gpio20/value'
        'brightness': r'D:\\Data\\Python\\seedlight2022\\files\\brightness',# /sys/class/backlight/led-ir-pwm/brightness
        'voltage': r'D:\\Data\\Python\\seedlight2022\\files\\n_voltage1_raw',# /sys/bus/iio/devices/iio\:device0/in_voltage1_raw
        'alarm': r'D:\\Data\\Python\\seedlight2022\\files\\alarm_value',  # /sys/class/gpio/gpio23/value
        'volt': r'/sys/class/ic/hlw8112/volt',  # /sys/class/ic/hlw8112/volt
        'cur': r'/sys/class/ic/hlw8112/cur',  # /sys/class/ic/hlw8112/cur
        'images':r'../files/test.jpg'#/mnt/user/snapshot.jpg
    },
    'test':{
        'code': r'/proc/cpuinfo',  # /proc/cpuinfo
        'light': r'/sys/class/gpio/gpio20/value',  # '/sys/class/gpio/gpio20/value'
        'brightness': r'/sys/class/backlight/led-ir-pwm/brightness',# /sys/class/backlight/led-ir-pwm/brightness
        'voltage': r'/sys/bus/iio/devices/iio\:device0/in_voltage1_raw',# /sys/bus/iio/devices/iio\:device0/in_voltage1_raw
        'alarm': r'/sys/class/gpio/gpio23/value',  # /sys/class/gpio/gpio23/value
        'volt': r'/sys/class/ic/hlw8112/volt',  # /sys/class/ic/hlw8112/volt
        'cur': r'/sys/class/ic/hlw8112/cur',  # /sys/class/ic/hlw8112/cur
        'images':r'/data/server/test/test.jpg'#/mnt/user/snapshot.jpg
    }
}
